package com.zhang.utils;

import com.zhang.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

public class ShiroUtil {
    public static AccountProfile getProfile(){
        return (AccountProfile)(SecurityUtils.getSubject().getPrincipal());
    }
}
